#include <iostream>
#include <string>

using namespace std;

class Complex
{
private:
    double real;
    double imag;
public:
    Complex()
        :real(0),imag(0)
    {

    }
    Complex(double real ,double imag)
        :real(real) , imag(imag)
    {

    }
    ~Complex()
    {

    }
public:
    void show()
    {
        cout << "实部" << real << "虚部" <<imag << endl;
    }
public:
    void operator()()
    {
        cout << "实部" << real << "虚部" << imag << endl;
    }
    void operator()(Complex &O)
    {
        cout << "实部" << real << "虚部" << imag << endl;
        cout << "实部" << O.real << "虚部" << O.imag << endl;
    }
    void operator()(char * str)
    {
        cout << str << "的 实部" << real << "虚部" << imag << endl;
    }
};


int main(int argc, char const *argv[])
{
    Complex F1(10 , 20);
    Complex F2(80 , 90);
    F1(F2);
    return 0;
}
